package com.ruoyi.lynhgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.lynhgl.mapper.TbLynhglLysylMapper;
import com.ruoyi.lynhgl.domain.TbLynhglLysyl;
import com.ruoyi.lynhgl.service.ITbLynhglLysylService;

/**
 * 楼宇使用量Service业务层处理
 * 
 * @author hc
 * @date 2023-11-10
 */
@Service
public class TbLynhglLysylServiceImpl implements ITbLynhglLysylService 
{
    @Autowired
    private TbLynhglLysylMapper tbLynhglLysylMapper;

    /**
     * 查询楼宇使用量
     * 
     * @param id 楼宇使用量主键
     * @return 楼宇使用量
     */
    @Override
    public TbLynhglLysyl selectTbLynhglLysylById(Long id)
    {
        return tbLynhglLysylMapper.selectTbLynhglLysylById(id);
    }

    /**
     * 查询楼宇使用量列表
     * 
     * @param tbLynhglLysyl 楼宇使用量
     * @return 楼宇使用量
     */
    @Override
    public List<TbLynhglLysyl> selectTbLynhglLysylList(TbLynhglLysyl tbLynhglLysyl)
    {
        return tbLynhglLysylMapper.selectTbLynhglLysylList(tbLynhglLysyl);
    }

    /**
     * 新增楼宇使用量
     * 
     * @param tbLynhglLysyl 楼宇使用量
     * @return 结果
     */
    @Override
    public int insertTbLynhglLysyl(TbLynhglLysyl tbLynhglLysyl)
    {
        return tbLynhglLysylMapper.insertTbLynhglLysyl(tbLynhglLysyl);
    }

    /**
     * 修改楼宇使用量
     * 
     * @param tbLynhglLysyl 楼宇使用量
     * @return 结果
     */
    @Override
    public int updateTbLynhglLysyl(TbLynhglLysyl tbLynhglLysyl)
    {
        return tbLynhglLysylMapper.updateTbLynhglLysyl(tbLynhglLysyl);
    }

    /**
     * 批量删除楼宇使用量
     * 
     * @param ids 需要删除的楼宇使用量主键
     * @return 结果
     */
    @Override
    public int deleteTbLynhglLysylByIds(Long[] ids)
    {
        return tbLynhglLysylMapper.deleteTbLynhglLysylByIds(ids);
    }

    /**
     * 删除楼宇使用量信息
     * 
     * @param id 楼宇使用量主键
     * @return 结果
     */
    @Override
    public int deleteTbLynhglLysylById(Long id)
    {
        return tbLynhglLysylMapper.deleteTbLynhglLysylById(id);
    }
}
